package org.example.hw.controller;

import org.example.hw.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
public class HelloWorldController {

	@Autowired
	private UserService userService;
	
	@RequestMapping(value="/hello", method=RequestMethod.GET)
	public String handleHelloWorldGet(Model model) {
		System.out.println("HelloWorldController.helloWorldGet()");
		model.addAttribute("message", "Zdravo, jbg šščžć");
		return "helloworld";
	}
	
}
